package ch02;

/**
 * Created by Think on 2016/3/15.
 */
public class Level {
    public static void main(String[] args) {
        int score=88;
        int quotient=score/10;
        char level;
        switch(quotient) {
            case 10:
            case 9:
                level = 'A';
                break;
            case 8:
                level = 'B';
                break;
            case 7:
                level = 'C';
                break;
            case 6:
                level = 'D';
                break;
            default:
                level = 'E';
        }
        System.out.printf("得分等级：%c%n",level);
    }
}

